class Human:
    name1='人类'
    @classmethod
    def aaa(cls):
        print("-----类方法------")
        print(cls.name1)
    @classmethod
    def nnn(cls,name):
        print("-----类方法------", name)
    @staticmethod
    def bbb():
        print("-----静态方法------")
    @staticmethod
    def ddd(name):
        print("-----静态方法------", name)

    def putong(self):
        print("----普通方法----")
# 类名访问
Human.aaa()
Human.bbb()
Human.nnn("她她她")
Human.ddd("wowowo")

# 对象名访问
h = Human()
h.aaa()
h.bbb()
